{% extends 'blog_article/base.html' %}
{% block title %}
share a post
{% endblock %}

{% block content %}
    {% if send %}
     <p>{{ post.title }} was successfully send to {{ form.cleaned_data.to }}</p>
    {% else %}
        <h1>share"{{ post.title }}" by e-mail</h1>
        <form action="" method="post">
        {{ form.as_p }}
        {% csrf_token %}
            <input type="submit" value="send_email">
        </form>
    {% endif %}

{% endblock %}